home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 11689 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

  1. Path: news.luc.edu!user
  2. From: VArase@varase.it.luc.edu (Verne Arase)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Borland C's tmpnam()
  5. Date: Mon, 25 Mar 1996 23:42:11 +0000
  6. Organization: LUMC
  7. Message-ID: <AD7CDFD39668AABD2@mcdiala01.it.luc.edu>
  8. References: <AD75E5DC9668E2A52@mcdiala13.it.luc.edu> <Pine.A32.3.91.960322134158.23347A-100000@red.weeg.uiowa.edu> <AD78E5E796681EC58@mcdialb10.it.luc.edu> <827626790snz@genesis.demon.co.uk>
  9. NNTP-Posting-Host: 147.126.240.101
  10.  
  11. In article <827626790snz@genesis.demon.co.uk>,
  12. Lawrence Kirby <fred@genesis.demon.co.uk> wrote:
  13.  
  14.  >>It seems to be a good start for a serious tempname(), however :-).
  15.  >
  16.  >The C language standard has no concept of a directory so, unless I
  17.  >misunderstand you, I can't see what this would do differently from
  18.  >tmpnam().
  19.  
  20. Perhaps Borland C is supported on more than one platform?
  21.  
  22. I thought that only DOS/Intel offspring platforms were supported; that's
  23. why I limited my query to that specific compiler; else I would've included
  24. the target environment.
  25.  
  26. The Borland C compiler tmpnam() function returns an 8.3 filename, which is
  27. insufficient for determining if a filename is unique in any but the default
  28. directory (if indeed it does that). I was reluctant to change the default
  29. directory for reasons I won't enumerate here.
  30.  
  31. If you're stating that tmpnam() under Borland C does indeed check to see
  32. that the file name is unique, I'll quash that reluctance and change the
  33. default directory.
  34.  
  35. Are you saying you know this as a known fact, or are you simply reciting
  36. some ANSI C recommendation?
  37.  
  38. ---
  39. The above are my own opinions, and not those of my employer.
  40.